using System;
using System.Collections;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Web;
using System.Web.SessionState;
using System.Web.UI;
using System.Web.UI.WebControls;
using System.Web.UI.HtmlControls;

using AspNetForums;
using AspNetForums.Components;
using AspNetForums.Controls;


namespace AspNetForums.Admin
{
	/// <summary>
	/// Summary description for Default.
	/// </summary>
	public class Default : System.Web.UI.Page
	{
		public Default()
		{
			
		}

		protected override void OnLoad(EventArgs e)
		{
			User user = Users.GetUser();
			if( user != null )
			{
				if( !user.IsAdministrator )
				{
					HttpContext.Current.Response.Redirect( Globals.GetSiteUrls().Home, true );
				}
			}
			else
			{
				HttpContext.Current.Response.Redirect( Globals.GetSiteUrls().Home, true );
			}
			//base.OnLoad (e);
		}
	}
}
